package com.lebang.mapper;

import com.lebang.entity.member.TbMemberInviteStatistics;
import com.lebang.example.TbMemberInviteStatisticsExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TbMemberInviteStatisticsMapper {
    long countByExample(TbMemberInviteStatisticsExample example);

    int deleteByExample(TbMemberInviteStatisticsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbMemberInviteStatistics record);

    int insertSelective(TbMemberInviteStatistics record);

    List<TbMemberInviteStatistics> selectByExample(TbMemberInviteStatisticsExample example);

    TbMemberInviteStatistics selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbMemberInviteStatistics record, @Param("example") TbMemberInviteStatisticsExample example);

    int updateByExample(@Param("record") TbMemberInviteStatistics record, @Param("example") TbMemberInviteStatisticsExample example);

    int updateByPrimaryKeySelective(TbMemberInviteStatistics record);

    int updateByPrimaryKey(TbMemberInviteStatistics record);

    TbMemberInviteStatistics getByMemberId(String memberId);

    void addTotalAmount(@Param("memberId")String memberId, @Param("amount")Integer amount);

    void addTotalTsAmount(@Param("memberId") String memberId, @Param("amount") Integer amount);

    Integer selectTsNumbersByMemberId(@Param("memberId")String memberId);
}